#include<stdio.h>
#include<stdlib.h>
#include<unistd.h>
#include<sys/types.h>
int main()
{	
	int a=10,b=9;
	printf("a=%d b=%d\n",a,b);
	pid_t pid;
	pid=fork();
	if(pid<0)
	perror("fork");
	if(pid==0)
	{
		while(1){
		a++,b++;
		printf("thid is son process a=%d b=%d\n",a,b);
		sleep(1);}
	}
	else
	 {
                while(1){
		printf("thid is father process a=%d b=%d\n",a,b);
                sleep(1);}
        }
	return 0;
}
